﻿// -----------------------------------------------------------------------
// <copyright file="FileNotFoundException.cs" company="Company">
// Company 2011
// </copyright>
// -----------------------------------------------------------------------

using System;
using System.Runtime.InteropServices;
using Company.IO.Interfaces;

namespace Company.System.IO
{
    /// <summary>
    /// The exception that is thrown when an attempt to access a file that does not exist on disk fails.
    /// </summary>
    [Serializable]
    [Guid("9b78c3c3-7b32-46cd-949b-5d661e2d6a98")]
    public class FileNotFoundException : Exception, IFileNotFoundException
    {
        /// <summary>
        /// Initializes a new instance of the FileNotFoundException class
        /// </summary>
        /// <param name="systemIoConverter">The converter to use</param>
        /// <param name="fileNotFoundException">The FileNotFoundException object</param>
        public FileNotFoundException(ISystemIoConverter systemIoConverter,
                                     global::System.IO.FileNotFoundException fileNotFoundException)
            : base(systemIoConverter, fileNotFoundException)
        {
        }
    }
}